﻿<%@ Page Title="" Language="C#" MasterPageFile="~/movie.master" AutoEventWireup="true" CodeFile="myqueue.aspx.cs" Inherits="myqueue" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div id="maincontent">
    <asp:Panel ID="pnlMyQueue" runat="server">
        <h3>My Queue</h3>
        <table cellpadding="1" cellspacing="1" width="500px">
            <tr>
                <td width="400px">
                   <asp:GridView ID="gvQueue" runat="server" AllowPaging="True" CellPadding="3" CellSpacing="3" BorderWidth="1">
                   </asp:GridView>
                </td>
           </tr>
        </table>    
    </asp:Panel>
    
    <asp:Panel ID="pnlNewFeatures" runat="server">
    <br />
    <h3>New Listings</h3>
        
    
    <table cellpadding="3px" cellspacing="3px" class="style1">
    <tr><td></td></tr>
         <tr>
                    <td class="Message" >
                        <asp:Label runat="server" ID="lblmsg2" ></asp:Label>   
                    </td>
           </tr>
        <tr>
            <td>
                <asp:GridView ID="gvNewListings" runat="server" DataKeyNames="MovieID" AutoGenerateColumns="false" Width="100%"
                    AllowPaging="true" PageSize="10" 
                            EmptyDataText="No Data to Display"                              
                            AllowSorting="true"  onrowcommand="gvNewListings_RowCommand"  >
                           <RowStyle CssClass="GridViewItemTemplateRowStyle" />                   
                        <AlternatingRowStyle CssClass="GridViewAlternateItemTemplateRowStyle"  />
                        <EmptyDataRowStyle CssClass= "GridViewEmptyDataRowStyle"  />
                        <HeaderStyle  CssClass="GridViewHeaderStyle" />
                        <Columns>
                         <asp:TemplateField>
                                 <ItemTemplate>
                                    <asp:HiddenField id ="hdnMovieID2"  runat="server" Value='<%# Bind("MovieID") %>' />
                                 </ItemTemplate>                             
                             </asp:TemplateField>                            
                        <asp:ImageField dataimageurlfield="Image" dataimageurlformatstring="images/movieImages/{0}"></asp:ImageField>
                               
                           <asp:BoundField DataField="Name" HeaderText ="Name" />
                             <asp:BoundField DataField="Director" HeaderText ="Director" />
                               <asp:BoundField DataField="Genre" HeaderText ="Genre" />
                                  <asp:BoundField DataField="Image" HeaderText ="Image" />
                                      <asp:CommandField ShowInsertButton="True" NewText="Add to Queue" ButtonType="Image" NewImageUrl="images/addToCart.jpg"   />                      
                         
                         </Columns>
                  </asp:GridView>
                <asp:SqlDataSource ID="getNewListings" runat="server" ConnectionString="<%$ ConnectionStrings:moviesConnection %>"
                  SelectCommand="mov_getNewListings" SelectCommandType="StoredProcedure" >                  
                </asp:SqlDataSource>
            </td>
          
        </tr>
        <tr>
           
            <td>
         
            </td>
        </tr>
        <tr>
           
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            
            <td>
                &nbsp;</td>
        </tr>
    </table>
    
    </asp:Panel>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" Runat="Server">
</asp:Content>

